package com.code.day18;

import java.util.ArrayList;

public class Demo03For {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        list.add("张三");
        list.add("李四");
        list.add("王五");
        list.add("赵六");
        list.add("田七");
        list.add("朱八");
        for (String s : list) {
            System.out.println(s);
        }
        int[] arr = {1,2,3,4,5,6,7};
        for (int i : arr) {
            System.out.println(i);
        }
    }
}
